﻿




using System.Web.Mvc;
using Hotpot.Infrastructure;
using Hotpot.Modules.Blogs.Extensions;
using Hotpot.Modules.Blogs.Models;
using Hotpot.Modules.Tags.Models;

namespace Hotpot.Modules.Blogs.Visitors
{
    public class CommentVisitor : Visitor
    {
        private readonly UrlHelper urlHelper;

        public CommentVisitor(UrlHelper urlHelper)
        {
            this.urlHelper = urlHelper;
        }

        public string Visit(BlogHomePageContainer container, string dataFormat)
        {
            return urlHelper.Posts();
        }

        public string Visit(Blog blog, string dataFormat)
        {
            return urlHelper.Comments(blog, dataFormat);
        }

        public string Visit(Tag tag, string dataFormat)
        {
            return urlHelper.Comments(tag, dataFormat);
        }
    }
}
